# Contributor: Isaac Dunham <ibid.ag@gmail.com>
# Maintainer: Isaac Dunham <ibid.ag@gmail.com>
pkgname=py3-matplotlib
_pyname=matplotlib
pkgver=3.3.1
pkgrel=0
pkgdesc="Python3 library for plots"
url="https://matplotlib.org"
# mips blocked due to py3-numpy
arch="all !mips !mips64"
license="Python-2.0"
depends="py3-numpy py3-dateutil py3-parsing py3-tz py3-cycler py3-cairo py3-kiwisolver
	python3-tkinter"
makedepends="python3-dev gfortran py3-numpy-dev freetype-dev
	libpng-dev tk-dev py3-setuptools"
checkdepends="py3-pytest xvfb"
source="$pkgname-$pkgver.tar.gz::https://github.com/matplotlib/$_pyname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"
# matplotlib provides unit tests, but they need to be run post installation :-(
options="!check"

replaces="py-matplotlib" # Backwards compatibility
provides="py-matplotlib=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="b6eceb4244ffef9aabafb6889563e9be503272599022e45c54e70c9e76a791e9ffb9f108a993a42f2e8f25bebb94483e75a8c17924224ccc1a19ce3aa5268196  py3-matplotlib-3.3.1.tar.gz"
